<?php
global $_RQ,$_AR;
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
if($_RQ['is_access'] && $_RQ['action']=='index'){
	$_SESSION['onemerchid']=0;
	$this->setting=$this->plugin_setting('basic');
}elseif($_RQ['is_access'] && ($_RQ['onemerchid'] || $_RQ['merchid'])){
	if($_RQ['onemerchid'] || $_RQ['merchid']){
		$_SESSION['onemerchid']=$_RQ['onemerchid']?:$_RQ['merchid'];
	}
	$this->setting=$this->plugin_setting('basic'.$_SESSION['onemerchid']);
}
$_SESSION['onemerchid']=$_SESSION['onemerchid']?:0;
$_SESSION['ocreateurl']='jy_caigoushop/order.create//';
$_SESSION['merchshop']='jy_caigoushop/merchshop//';
$return['onemerchid']=$_SESSION['onemerchid'];
$return['pluginset']=$this->setting;
if($_SESSION['onemerchid']){
    $return['pluginset']['footernav']=$return['pluginset']['footernav2'];
}
$return['footernav']=$return['pluginset']['footernav'];
?>